package com.kgc.Student;


public class Student {
    private int bookld;
    private String bookName;
    private String press;
    private  int price;

    public Student(){

    }
    public Student( int bookld,String bookName,String press,int price){
        this.setBookld(bookld);
        this.setBookName(bookName);
        this.setPress(press);
        this.setPrice(price);
    }
    public void report(){
        System.out.println("图书编号"+this.bookld+"图书名称"+this.bookName+"出版社"+this.press+"定价"+this.price);

    }
    public int getBookld(){
        return this.bookld;
    }
    public void setBookld(int bookld){
        this.bookld=bookld;
    }
    public String getBookName(){
        return this.bookName;
    }
    public void setBookName(String bookName)
    {
        this.bookName=bookName;
    }
    public String getPress(){
        return this.press;
    }
    public void setPress(String press){
        this.press=press;
    }
    public int getPrice(){
        return this.price;
    }
    public void setPrice(int price){
        this.price=price;
    }
    public String getPostAddress(){
        String info=this.press+this.bookld;
        return info;
    }

}
